package edu.kjxy.day01.t13forprint;

/**
 * 功能:虽然停止了线程，但是for语句下面的语句，还是会继续执行
 * 作者:程序员欧阳子韩
 * 日期:2024/1/31 20:17
 */
public class RunTest {
    public static void main(String[] args) {
        try {
            MyThread myThread = new MyThread();
            myThread.start();
            Thread.sleep(1000);
            myThread.interrupt();
        }catch (InterruptedException e){
            System.out.println("main catch");
            e.printStackTrace();
        }
        System.out.println("end");
    }
}
